package com.wantup.dubbo.service.impl;

import com.wantup.dubbo.service.ServiceApi;

import java.util.List;
import java.util.UUID;

/**
 * @ClassName ServiceApiImpl
 * @Description TODO
 * @Author zhaoluowei
 * @Date 2019/9/8  10:21
 * @Version 1.0
 */

public class ServiceApiImpl implements ServiceApi {
    @Override
    public String sendMsg(String message) {
        String msgId = UUID.randomUUID().toString();
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "provider - message : " + msgId + "  " + message;
    }

    @Override
    public String sendMsg02(String message) {
        String msgId = UUID.randomUUID().toString();
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "provider - message 02 : " + msgId + "  " + message;
    }

    @Override
    public List<String> mergerMsg(String message) {
        return null;
    }
}
